//
//  RTJAgreementController.m
//  RuiTaiJinProject
//
//  Created by jayson on 2019/1/8.
//  Copyright © 2019年 leewei. All rights reserved.
//

#import "RTJAgreementController.h"

@interface RTJAgreementController ()
@property (weak, nonatomic) IBOutlet NSLayoutConstraint *top;
@property (weak, nonatomic) IBOutlet UIView *bg_view;

@end

@implementation RTJAgreementController

- (void)viewDidLoad {
    [super viewDidLoad];
    // Do any additional setup after loading the view from its nib.
    self.top.constant = screenH == 812 ? 88 : 64;
    
    _bg_view.layer.cornerRadius = 5;
    _bg_view.layer.shadowColor = [UIColor colorForHex:@"#dbc9cc"].CGColor;
    _bg_view.layer.shadowOffset = CGSizeMake(-1, 1);
    _bg_view.layer.shadowOpacity = 0.5;
    _bg_view.layer.shadowRadius = 5;
}

- (IBAction)btn1:(id)sender {
    
    RTJCommentController *vc = [[RTJCommentController alloc]init];
    vc.title = @"承诺函";
    vc.imgName = @"clh";
    [self.navigationController pushViewController:vc animated:YES];
    
}

- (IBAction)btn2:(id)sender {
    
    [self loadUrl:@"zhucexieyi" title:@"注册协议"];

}

- (IBAction)btn3:(id)sender {
    
    [self loadUrl:@"fengxianjiesishu" title:@"风险揭示书"];

}

- (IBAction)btn4:(id)sender {
    
    [self loadUrl:@"loan_agreement" title:@"瑞泰金借款协议"];

}

- (IBAction)btn5:(id)sender {
    
    [self loadUrl:@"zidongtoubiao" title:@"自动投标服务授权书"];

}

- (IBAction)btn6:(id)sender {
    
    [self loadUrl:@"dianziqianzhang" title:@"电子签章授权委托书"];


}
- (IBAction)btn7:(id)sender {
    
    [self loadUrl:@"auto_tender_agreement" title:@"智能投标服务授权书"];

}


-(void)loadUrl:(NSString *)url title:(NSString *)title{
    
    RTJHTMLViewController *vc = [[RTJHTMLViewController alloc]init];
    vc.title = title;
    vc.htmlStr = url;
    [self.navigationController pushViewController:vc animated:YES];
    
}

@end
